package com.jiazhong.IO流.字节到字符的转换流;

import java.io.*;

public class OutputStreamWriterDemo {
    public static void main(String[] args) throws IOException {
        //创建字节输出流对象
        FileOutputStream outputStream = new FileOutputStream("d:\\abc.txt",true);
        //使用字节输出流创建字节到字符的输出流对象
        OutputStreamWriter outputStreamWriter = new OutputStreamWriter(outputStream,"utf-8");
        outputStreamWriter.write("字节到字符的转换流");
        outputStreamWriter.write("你滴，死啦死啦滴");
        outputStreamWriter.flush();
        outputStreamWriter.close();
    }
}
